<?php
/*
 * Created on 16.11.2011
 */
 
defined('_JEXEC') or die('Restricted access');
if(!JPluginHelper::isEnabled('system','languagefilter')) {
	          echo JHTML::_('tabs.panel',JText::_('COM_SEF_LANGUAGE'),'language');
              $x = 0;
	          ?>
	          <fieldset class="adminform">
	          	<legend><?php echo JText::_('COM_SEF_LANGUAGE_SETTINGS'); ?></legend>
	          	<table class="adminform">
	          		<tr<?php $x++; echo (($x % 2) ? '':' class="row1"' );?>>
	          			<td width="20"><?php echo $this->tooltip(JText::_('COM_SEF_TT_LANG_ENABLE'),JText::_('COM_SEF_LANG_ENABLE')); ?></td>
	          			<td width="200"><?php echo JText::_('COM_SEF_LANG_ENABLE'); ?></td>
	          			<td><?php echo $this->lists['langEnable']; ?></td>
	          		</tr>
	          		<tr<?php $x++; echo (($x % 2) ? '':' class="row1"' );?>>
	    	            <td width="20"><?php echo $this->tooltip(JText::_('COM_SEF_TT_JF_LANG_PLACEMENT'), JText::_('COM_SEF_LANGUAGE_INTEGRATION'));?></td>
	    	            <td width="200"><?php echo JText::_('COM_SEF_LANGUAGE_INTEGRATION');?></td>
	    	            <td><?php echo $this->lists['langPlacementJoomla'];?></td>
	    	        </tr>
	    	        <tr<?php $x++; echo (($x % 2) ? '':' class="row1"' );?>>
	    	            <td><?php echo $this->tooltip(JText::_('COM_SEF_TT_JF_ALWAYS_USE_LANG'), JText::_('COM_SEF_ALWAYS_USE_LANGUAGE'));?></td>
	    	            <td><?php echo JText::_('COM_SEF_ALWAYS_USE_LANGUAGE');?></td>
	    	            <td><?php echo $this->lists['alwaysUseLangJoomla'];?></td>
	    	        </tr>
	    	        <tr<?php $x++; echo (($x % 2) ? '':' class="row1"' );?>>
	    	        	<td><?php echo $this->tooltip(JText::_('COM_SEF_TT_ADDLANG_TO_MULTILANGUAGE'),JText::_('COM_SEF_ADDLANG_TO_MULTILANGUAGE')); ?></td>
	    	        	<td><?php echo JText::_('COM_SEF_ADDLANG_TO_MULTILANGUAGE'); ?></td>
	    	        	<td><?php echo $this->lists['addLangMulti']; ?></td>
	    	        </tr>
	    	        <tr<?php $x++; echo (($x % 2) ? '':' class="row1"' );?>>
	    	            <td><?php echo $this->tooltip(JText::_('COM_SEF_TT_JF_BROWSER_LANG'), JText::_('COM_SEF_GET_LANGUAGE_FROM_BROWSER_SETTING'));?></td>
	    	            <td><?php echo JText::_('COM_SEF_GET_LANGUAGE_FROM_BROWSER_SETTING');?></td>
	    	            <td><?php echo $this->lists['browserLangJoomla'];?></td>
	    	        </tr>
	    	        <tr<?php $x++; echo (($x % 2) ? '':' class="row1"' );?>>
	    	            <td><?php echo $this->tooltip(JText::_('COM_SEF_TT_JF_LANG_COOKIE'), JText::_('COM_SEF_SAVE_LANGUAGE_TO_COOKIE'));?></td>
	    	            <td><?php echo JText::_('COM_SEF_SAVE_LANGUAGE_TO_COOKIE');?></td>
	    	            <td><?php echo $this->lists['langCookieJoomla'];?></td>
	    	        </tr>
	    	        <tr<?php $x++; echo (($x % 2) ? '':' class="row1"' );?>>
	    	            <td><?php echo $this->tooltip(JText::_('COM_SEF_TT_JF_MAIN_LANG'), JText::_('COM_SEF_MAIN_LANGUAGE'));?></td>
	    	            <td><?php echo JText::_('COM_SEF_MAIN_LANGUAGE');?>:</td>
	    	            <td><?php echo $this->lists['mainLanguageJoomla'];?></td>
	    	        </tr>
	          	</table>
	          	<table class="adminform">
	          		<tr>
	          			<th width="20"><?php echo $this->tooltip(JText::_('COM_SEF_TT_JF_DOMAIN'), JText::_('COM_SEF_DOMAIN_CONFIGURATION'));?></th>
		              	<th width="200"><?php echo JText::_('COM_SEF_DOMAIN_CONFIGURATION'); ?></th>
		              	<th colspan="2"></th>
	          		</tr>
	          		<?php
	          		for($i=0;$i<count($this->lists["subdomainsJoomla"]);$i++) {
	          			$l=$this->lists["subdomainsJoomla"][$i];
	          			?>
	          			<tr<?php $x++; echo (($x % 2) ? '':' class="row1"' );?>>
	          				<td><?php echo $l->title; ?></td>
	          				<td><input type="text" name="subDomainsJoomla[<?php echo $l->sef; ?>]" class="inputbox" size="45" value="<?php echo $l->value; ?>" /></td>
	          				<td></td> 
	          			</tr>
	          			<?php
	          		}
	          		?>
	          	</table>
	          </fieldset>
			  <?php
          }
          ?>